package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Title: IntrveptorTest
 * Description: TODO
 *
 * @author gejx
 * @version V1.0
 * @date 2021-12-13
 */
@Controller
public class InterceptorTest {
    @RequestMapping("/interceptor")
    public String testInterceptor(){

      return "success";
    }
    @RequestMapping("/ArithmeticException1")
    public String testArithmeticException(){
        int a=1/0;
        return "success";
    }
}
